/*
 * @author: huangww
 * @Date: 2021-02-24 14:58:28
 * @LastEditTime: 2021-02-24 14:58:42
 * @FilePath: \fmgr\src\core\base\Params.ts
 */
namespace core {
  export class Params {
    private params: string;

    public constructor() {
      this.params = "";
    }

    public setParam(key: string, value: string) {
      if (this.params.length > 0) {
        this.params = this.params + "&" + key + "=" + value;
      } else {
        this.params = key + "=" + value;
      }
    }

    public getParams(): string {
      return this.params;
    }

    public setParams(params: string): void {
      this.params = params;
    }
  }
}